home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
201-225
/
disk_201
/
draco
/
drinc
/
exec
/
semaphores.g
< prev
next >
Wrap
Text File
|
1992-05-06
|
894b
|
37 lines
type
MsgPort_t=unknown34,
MinNode_t=unknown8,
Node_t=unknown14,
Semaphore_t=struct{
MsgPort_tsm_MsgPort;
uintsm_Bids;
},
SemaphoreRequest_t=struct{
MinNode_tsr_Link;
*Task_tsr_Waiter;
},
SignalSemaphore_t=struct{
Node_tss_Link;
uintss_NestCount;
MinList_tss_WaitQueue;
SemaphoreRequest_tss_MultipleLink;
*Task_tss_Owner;
uintss_QueueCount;
};
extern
AddSemaphore(*SignalSemaphore_tss)void,
AttemptSemaphore(*SignalSemaphore_tss)bool,
FindSemaphore(*charname)*SignalSemaphore_t,
InitSemaphore(*SignalSemaphore_tss)void,
ObtainSemaphore(*SignalSemaphore_tss)void,
ObtainSemaphoreList(*SignalSemaphore_tss)void,
Procure(*Semaphore_tsm;*Message_tbidMessage)bool,
ReleaseSemaphore(*SignalSemaphore_tss)void,
ReleaseSemaphoreList(*SignalSemaphore_tss)void,
RemSemaphore(*SignalSemaphore_tss)void,
Vacate(*Semaphore_tsm)void;